package cashin

class Receipt {
    Date date
    BigDecimal pin
    BigDecimal cash
    BigDecimal cc
    BigDecimal voucher

    BigDecimal getTotal() {
       ticketLines.sum()
    }

    static hasMany = [ticketLines:ReceiptLine]

    static constraints = {
    }

    static transients = ['total']
}
